package view;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JComboBox;

import services.DataCache;


public class CourseInfoPanel extends InfoPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6377810746926799132L;

	public CourseInfoPanel() {
		super("Course");		
		setSize(655, 495);
		setMinimumSize(new Dimension(655,495));
		setMaximumSize(new Dimension(655,495));
		
	}
	
	private void updateProperty(String indexKey)
	{
		int i,j;
		String[] VAPodName;
				
		if (DataCache.vCourseCache != null)
		{
			for (i=0; i<DataCache.vCourseCache.size(); i++)
	    	{
	    		if (indexKey.compareTo(DataCache.vCourseCache.elementAt(i).elementAt(1).toString()) == 0)
	    		{
	    			addProperties("Product family",DataCache.vCourseCache.elementAt(i).elementAt(0));
	    			addProperties("Environment",DataCache.vCourseCache.elementAt(i).elementAt(2));
	    			addProperties("Site",DataCache.vCourseCache.elementAt(i).elementAt(3));
	    			VAPodName = null;
	    			VAPodName = DataCache.vCourseCache.elementAt(i).elementAt(4).toString().split(",");
	    		
	    			if (VAPodName != null)
	    			{
	    				for (j=0; j<VAPodName.length;j++)
	    	    		{
	    					if (j>0)
	    					{
	    						addProperties("",VAPodName[j].trim());
	    					}
	    					else
	    					{
	    						addProperties("PODs",VAPodName[j].trim());
	    					}
	    	    		}
	    			}
	    			addProperties("Max Students per Class",DataCache.vCourseCache.elementAt(i).elementAt(5));
	    			addProperties("Systems per Student",DataCache.vCourseCache.elementAt(i).elementAt(6));
	    		}
	    		
	    	}

		}

	}
		
	public void setCourseItems()
	{
	}	
}
